package org.market.domain.strategy.service.rule.imp;

import lombok.extern.slf4j.Slf4j;
import org.market.domain.strategy.model.entity.RuleActionEntity;
import org.market.domain.strategy.model.entity.RuleMatterEntity;
import org.market.domain.strategy.repository.IStrategyRepository;
import org.market.domain.strategy.service.annotation.LogicStrategy;
import org.market.domain.strategy.service.rule.ILogicFilter;
import org.market.domain.strategy.service.rule.tree.factory.DefaultLogicFactory;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

/**
 * @Author: Insight
 * @Description: TODO
 * @Date: 2025/2/21 下午10:19
 * @Version: 1.0
 */
@Slf4j
@Component
@LogicStrategy(logicModel = DefaultLogicFactory.LogicModel.RULE_LUCK)
public class RuleLuckAwardFilter implements ILogicFilter<RuleActionEntity.AfterRaffleActionEntity> {

    @Resource
    private IStrategyRepository strategyRepository;

    @Override
    public RuleActionEntity<RuleActionEntity.AfterRaffleActionEntity> filter(RuleMatterEntity filterMatterEntity) {
        String userId = filterMatterEntity.getUserId();
        Long strategyId = filterMatterEntity.getStrategyId();
        Integer awardId = filterMatterEntity.getAwardId();

        log.info("测试-黑名单目录 userId:{},strategyId:{},awardId:{}",userId,strategyId,awardId);

        return null;
    }
}
